Skip to content

feat: add libDirs to native library manifest (v0.5.909)#762

Merged
proggeramlug merged 2 commits into
PerryTS:mainfrom
Lebei2046:feature/voice-to-text-2
May 14, 2026
Merged

feat: add libDirs to native library manifest (v0.5.909)#762
proggeramlug merged 2 commits into
PerryTS:mainfrom
Lebei2046:feature/voice-to-text-2

Conversation

@Lebei2046
Copy link
Copy Markdown
Contributor

Add support for specifying library search paths in native library target configurations via the new libDirs field in package.json.

Changes:

  • Add lib_dirs field to TargetNativeConfig
  • Parse libDirs from package.json
  • Add -L flags for libDirs before linking

Summary

Changes

Related issue

Test plan

  • cargo build --release clean
  • cargo test --workspace --exclude perry-ui-ios --exclude perry-ui-tvos --exclude perry-ui-watchos --exclude perry-ui-gtk4 --exclude perry-ui-android --exclude perry-ui-windows passes
  • (if user-facing) Added or updated a test under test-files/ or a #[test] in the affected crate
  • (if CLI / stdlib / runtime API changed) Updated docs/src/
  • (if touching a platform UI backend) Built -p perry-ui-<backend> locally on that platform

Screenshots / output

Checklist

  • I have NOT bumped the workspace version or edited CLAUDE.md / CHANGELOG.md (maintainer handles these at merge)
  • My commits follow the loose feat: / fix: / docs: / chore: prefix convention used in the log
  • I've read CONTRIBUTING.md and agree to the Code of Conduct

@proggeramlug proggeramlug force-pushed the feature/voice-to-text-2 branch from 43c6700 to cfd4e21 Compare May 14, 2026 05:42
@proggeramlug proggeramlug changed the title feat: add libDirs support feat: add libDirs to native library manifest (v0.5.908) May 14, 2026
Lebei2046 and others added 2 commits May 14, 2026 08:13
Add support for specifying library search paths in native library
target configurations via the new `libDirs` field in package.json.

Changes:
- Add `lib_dirs` field to TargetNativeConfig
- Parse `libDirs` from package.json
- Add `-L` flags for libDirs before linking
…docs (v0.5.909)

Maintainer fold-in on top of @Lebei2046's libDirs feature:

- link.rs: emit /LIBPATH:<dir> on is_windows (MSVC link.exe) instead of
  -L<dir>, mirroring the existing libs loop's MSVC/Unix split.
- resolve.rs: anchor relative libDirs entries to package_dir via
  package_dir.join(p), matching swift_sources / metal_sources. Field
  type is now Vec<PathBuf>.
- compile.rs: doc-comment on the new field.
- manifest-v1.md: row added for libDirs.
- resolve.rs: two new tests in manifest_parse_tests covering
  package_dir anchoring + empty-by-default behavior.
- Cargo.toml / Cargo.lock / CLAUDE.md / CHANGELOG.md: 0.5.908 → 0.5.909
  (renumbered to follow PerryTS#760 which took 0.5.908 mid-review).
@proggeramlug proggeramlug force-pushed the feature/voice-to-text-2 branch from cfd4e21 to 99255d9 Compare May 14, 2026 06:16
@proggeramlug proggeramlug changed the title feat: add libDirs to native library manifest (v0.5.908) feat: add libDirs to native library manifest (v0.5.909) May 14, 2026
@proggeramlug proggeramlug merged commit d2e27e7 into PerryTS:main May 14, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants